<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./vue.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <blog>
            <span slot="bolgUrl">{{jspangData.bolgUrl}}</span>    
            <span slot="netName">{{jspangData.netName}}</span>    
            <span slot="skill">{{jspangData.skill}}</span>   
        </blog>
    </div>
    <template id="tmp">
        <div>
            <p>博客地址：<slot name="bolgUrl"></slot></p>
            <p>网名：<slot name="netName"></slot></p>
            <p>技术类型：<slot name="skill"></slot></p>
        </div>
    </template>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                jspangData: {
                    bolgUrl: 'http://jspang.com',
                    netName: '技术胖',
                    skill: 'Web前端'
                }
            },
            methods: {

            },
            components:{
                blog: {
                    template:'#tmp'
                }
            }
        })
    </script>
</body>

</html>